import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router'
import { DomSanitizer } from '@angular/platform-browser';

@Component({
  selector: 'app-newsdetail',
  templateUrl: './newsdetail.page.html',
  styleUrls: ['./newsdetail.page.scss'],
})
export class NewsdetailPage implements OnInit {

  public link:any
  constructor(private activatedRoute:ActivatedRoute,private sanitizer: DomSanitizer) { }

  ngOnInit() {
    this.activatedRoute.queryParams.subscribe(data=>{
      // this.link = this.sanitizer.bypassSecurityTrustResourceUrl(data.link); 
      // this.link = this.sanitizer.bypassSecurityTrustResourceUrl('/'); 
    })
    
  }

}
